#{extends 'CRUD/layout.html' /}
#{set title:messages.get('objects.surveyclinicalmanifestations') /}

<script>
$(document).ready(function() {
	$("tbody tr").each(function() {
		$(this).removeClass("odd").removeClass("even");
		$(this).find("td").each(function() {
			var link = $(this).find('.hiddenLinks').text();
			$(this).click(function() {
				$(location).attr("href", link);
			});
			$(this).hover(
			  function () {
			    $(this).addClass("hover");
			  },
			  function () {
			    $(this).removeClass("hover");
			  });
		});	
	});
});
</script>

<div id="crudList" class="${type.name}">

    <h2 id="crudListTitle">&{'objects.surveyclinicalmanifestations'}</h2>

    <div id="crudListSearch">
        #{crud.search /}
    </div>

    <div id="crudListTable">
        #{crud.table fields:['description', 'value'] }
           #{crud.custom 'description'}
           	  <span class="hiddenLinks">@{SurveyClinicalManifestations.show(object.id)}</span>
		      ${object.description}
		   #{/crud.custom}
           #{crud.custom 'value'}
           	  <span class="hiddenLinks">@{SurveyClinicalManifestations.show(object.id)}</span>
		      ${object.value}
		   #{/crud.custom}
		#{/ crud.table}
    </div>

    <div id="crudListPagination">
    	&{'total', models.SurveyClinicalManifestation.count()}
        #{pagination /}
    </div>

    <p id="crudListAdd">
        <a href="@{blank()}">&{'surveyclinicalmanifestation.add'}</a>
    </p>

</div>
